<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head th:replace="fragments :: head(~{::title})">
    <title>校园帮</title>
</head>
<body>
<!--个人信息-->
<div class="member">
    <!--头像-->
    <div class="member-pic">
        <img src="images/default_photo.png" th:src="@{/images/default_photo.png}"/>
    </div>
    <!--未登录-->
    <div th:if="${session.customer == null}" class="member-infor">
        <a th:href="@{/publiz/login}" style="color: #fff">登录</a>
        <span>/</span>
        <a th:href="@{/publiz/register}" style="color: #fff">注册</a>
    </div>
    <!--已登录-->
    <div th:if="${session.customer != null}" class="member-infor">
        <p>
            <span th:text="${session.customer.nickname}">用户昵称</span>
            <span th:if="${session.customer.userType != 2}" th:text="（大众会员）">（大众会员）</span>
            <span th:if="${session.customer.userType == 2}" th:text="（配送员）">（大众会员）</span>
        </p>
        <a style="color: #fff;font-size: 14px;" th:href="@{/customer/logout}">注销</a>
    </div>
</div>
<ul th:if="${session.customer != null}" class="member-nav">
    <li><a th:href="@{/order/lists}"><i class="am-icon-newspaper-o"></i><span>我的订单</span></a></li>
    <li th:if="${session.customer.userType == 2}"><a th:href="@{/order/listsForDistribution}"><i class="am-icon-bell-o"></i><span>我的配送</span></a></li>
    <li th:if="${session.customer.applyStatus < 3 }"><a th:href="@{/customer/applyToDistributor(id=${session.customer.id})}"><i class="am-icon-credit-card"></i><span>申请配送员</span></a></li>
</ul>
<ul class="member-nav mt">
    <li><a href=""><i class="am-icon-phone"></i>联系我们</a></li>
</ul>
<!--注册成功提示-->
<ul class="address-list" th:unless="${#strings.isEmpty(message)}">
    <li class="curr">
        <p th:text="${message}" class="order-add1" style="color: #000">注册成功，请登录！</p>
    </li>
</ul>
<div class="h50"></div>
<div th:replace="fragments :: footer"></div>
</body>
</html>
